package com.itheima.多线程.基础;

public class Demo12 extends Thread {
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println("hello world...");
        }
    }
}


class Text {

    public static void main(String[] args) {
        Demo12 demo12 = new Demo12();
        Thread th = new Thread(() -> {
            for (int i = 0; i < 100; i++) {
                System.out.println("thread.....Runnable");
            }
        });
        demo12.start();
        th.start();
    }
}